package snucse.teamd;

import snucse.teamd.math.Vec2;

public class Contact {
	Vec2 position;
	Vec2 sepAxisV1, sepAxisV2;
	Vec2 normal;
	Vec2 r1, r2;
	float separation;	//the separating axis is a face normal
	float Pn;	// accumulated normal impulse for preventing penetration
	float Pt;	// accumulated tangent impulse for friction
	float Pnb;	// accumulated normal impulse for position bias
	public Vec2 getPosition() {
		return position;
	}
	public void setPosition(Vec2 position) {
		this.position = position;
	}
	public Vec2 getNormal() {
		return normal;
	}
	public void setNormal(Vec2 normal) {
		this.normal = normal;
	}
	public Vec2 getR1() {
		return r1;
	}
	public void setR1(Vec2 r1) {
		this.r1 = r1;
	}
	public Vec2 getR2() {
		return r2;
	}
	public void setR2(Vec2 r2) {
		this.r2 = r2;
	}
	public float getSeparation() {
		return separation;
	}
	public void setSeparation(float separation) {
		this.separation = separation;
	}
	public float getPn() {
		return Pn;
	}
	public void setPn(float pn) {
		Pn = pn;
	}
	public float getPt() {
		return Pt;
	}
	public void setPt(float pt) {
		Pt = pt;
	}
	public float getPnb() {
		return Pnb;
	}
	public void setPnb(float pnb) {
		Pnb = pnb;
	}
	
	//TODO modify more..
}
